package com.wzy.service.reposirory.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wzy.common.base.result.R;
import com.wzy.service.reposirory.dto.UserGlobalWord;
import com.wzy.service.reposirory.entity.UserWord;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wuzhengyu
 * @since 2021-03-13
 */
public interface UserWordService extends IService<UserWord> {
    R getUserWords(String uid);

    R articleBreak(String article, Long uid);

    List<UserWord> generateEverDayWord(String uid, String number, String ratio);

    R wordNumberUpdate( String everyDayWord, String uid);

    R wordUpdate( String id,  String uid,  boolean isPass);
    R currentWordNumber(String uid);

    List<UserGlobalWord> getUserGlobalWordBySid(String sid, String uid);
}
